<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <!-- 游戏界面 -->
    <div class="container">
      <!-- 开始界面 -->
      <div class="result-page" style="display: block" id="startPage">
        <div class="wrapper">
          <h1></h1>
          <button id="startBtn">开始游戏</button>
        </div>
      </div>

      <!-- 游戏层 -->
      <div class="game-layer">
        <div class="wrapper">
          <!--UI 层 -->
          <div class="game-ui">
            <h1><span id="scoreLable">0</span></h1>
          </div>

          <!-- 精灵层 -->
          <div class="game-sprites"></div>
        </div>
      </div>

      <!-- 结束界面 -->
      <div class="result-page" id="resultPage">
        <h1 id="resultScore" class="panel">100</h1>
        <button id="restart">重新开始</button>
      </div>
    </div>

    <audio src="./audio/bg.mp3" id="bgmusic"></audio>
    <audio src="./audio/eat.mp3" id="eatmusic"></audio>
    <audio src="./audio/fail.mp3" id="failmusic"></audio>

    <script src="./var.js"></script>
    <script src="./start.js"></script>
    <script src="./index.js"></script>
  </body>
</html>
